From: Florian Müllner Date: Mon, 1 Aug 2022 14:55:12 +0000 (+0200) Subject: status/network: Catch errors when fetching client X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~145 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=af132dd8846bfc32d17be7c93118feee7803eca5;p=gnome-shell.git status/network: Catch errors when fetching client Otherwise any unrelated errors in that function are hidden, because exceptions in async functions are turned into promise rejections (and JS cannot know that we won't handle it at a later point). It wouldn't happen to me of course 😉 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 6c374b206..efe022ae1 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1749,7 +1749,7 @@ class Indicator extends PanelMenu.SystemIndicator { this._ctypes[NM.SETTING_VPN_SETTING_NAME] = NMConnectionCategory.VPN; this._ctypes[NM.SETTING_WIREGUARD_SETTING_NAME] = NMConnectionCategory.VPN; - this._getClient(); + this._getClient().catch(logError); } async _getClient() {